'''
Created on 2010-12-23

@author: zarra
'''

from model.expr_a._base import Base
from sqlalchemy import  Column, Integer, Unicode,String

class Department(Base):
    __tablename__='expr_gzq'
    id = Column('gzq_id',String(16),primary_key=True)
    name = Column('gzq_mc',Unicode(32),nullable=False)
    is_del = Column('is_del',Integer,nullable=False)
    def __init__(self,name):
        self.name=name
    def __repr__(self):
        return self.name.strip()
    def __json__(self):
        return {'id':self.id.strip(),'name':self.name.strip()}